public class towork4 {
    public static void main(String[] args) {
        int sum=0;
     for (int i=1;i<=2024;i++){
         if((i^2024)<2024){
             sum++;
         }
     }
        System.out.println(sum);
    }
}
